//
//  CustomNextButton.m
//  AmountBody
//
//  Created by Qiu Jishuai on 2018/1/19.
//  Copyright © 2018年 RCMTM. All rights reserved.
//

#import "CustomNextButton.h"
#import "UIFont+Extension.h"

@implementation CustomNextButton

- (instancetype)initWithFrame:(CGRect)frame {
    CGRect aFrame = frame;
    if (CGRectEqualToRect(aFrame, CGRectZero)) {
        aFrame = CGRectMake(0, 0, 40.0f, 40.0f);
    }
    if (self = [super initWithFrame:aFrame]) {
        self.titleLabel.frame = CGRectMake(0, 0, 40.0f, 15.0f);
        self.imageView.frame = CGRectMake(0, 15.0f, 40.0f, 25.0f);
        self.titleLabel.font = [UIFont systemMediumFontWithSize:10];
        [self setTitleColor:[UIColor colorWithHexString:@"#cccccc"] forState:UIControlStateNormal];
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.imageView.contentMode = UIViewContentModeCenter;
    }
    return self;
}


@end
